package nuc.zhangchao.test.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @Author Zhang Chao
 * @Date 2020/12/22 14:45
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User {
//    private Long id;
    private int id;
    private String username;
    private String email;
    private String password;
    private String phoneNum;

    private List<Role> roles;

//    public User(String email, String password) {
//        this.email = email;
//        this.password = password;
//    }
}
